23 #define foreach(x, v) for (typeof (v).begin() x=(v).begin(); x !=(v).end(); ++x)
24 #define For(i, a, b) for (int i=(a); i<(b); ++i)
25 #define D(x) cout << #x " is " << x << endl
29 while (getline(cin
, line
)) {
32 for (int i
= 0; i
< n
; ++i
) {
33 if (isalpha(line
[i
])) {
35 while (i
< n
and isalpha(line
[i
])) i
++;